package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="NoHouseBuilding"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class NohouseBuilding implements Serializable {

    /** identifier field */
    private Integer buildId;

    /** nullable persistent field */
    private String buildName;

    /** nullable persistent field */
    private String region;

    /** nullable persistent field */
    private String structure;

    /** nullable persistent field */
    private String buildDate;

    /** nullable persistent field */
    private Double area;

    /** persistent field */
    private String com;

    /** nullable persistent field */
    private String linkMan;

    /** nullable persistent field */
    private String linkTel;

    /** nullable persistent field */
    private String remark;

    /** nullable persistent field */
    private String ispublished;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private Integer roomNum;

    /** nullable persistent field */
    private Integer floorNum;

    /** nullable persistent field */
    private String direct;

    /** nullable persistent field */
    private Double buildArea;

    /** nullable persistent field */
    private String certificateId;

    /** nullable persistent field */
    private String assoId;

    /** full constructor */
    public NohouseBuilding(String buildName, String region, String structure, String buildDate, Double area, String com, String linkMan, String linkTel, String remark, String ispublished, String userId, String latestDate, Integer roomNum, Integer floorNum, String direct, Double buildArea, String certificateId, String assoId) {
        this.buildName = buildName;
        this.region = region;
        this.structure = structure;
        this.buildDate = buildDate;
        this.area = area;
        this.com = com;
        this.linkMan = linkMan;
        this.linkTel = linkTel;
        this.remark = remark;
        this.ispublished = ispublished;
        this.userId = userId;
        this.latestDate = latestDate;
        this.roomNum = roomNum;
        this.floorNum = floorNum;
        this.direct = direct;
        this.buildArea = buildArea;
        this.certificateId = certificateId;
        this.assoId = assoId;
    }

    /** default constructor */
    public NohouseBuilding() {
    }

    /** minimal constructor */
    public NohouseBuilding(String com, String userId) {
        this.com = com;
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="BuildId"
     *             unsaved-value="0"
     *         
     */
    public Integer getBuildId() {
        return this.buildId;
    }

    public void setBuildId(Integer buildId) {
        this.buildId = buildId;
    }

    /** 
     *            @hibernate.property
     *             column="BuildName"
     *             length="100"
     *         
     */
    public String getBuildName() {
        return this.buildName;
    }

    public void setBuildName(String buildName) {
        this.buildName = buildName;
    }

    /** 
     *            @hibernate.property
     *             column="Region"
     *             length="6"
     *         
     */
    public String getRegion() {
        return this.region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    /** 
     *            @hibernate.property
     *             column="Structure"
     *             length="6"
     *         
     */
    public String getStructure() {
        return this.structure;
    }

    public void setStructure(String structure) {
        this.structure = structure;
    }

    /** 
     *            @hibernate.property
     *             column="BuildDate"
     *             length="23"
     *         
     */
    public String getBuildDate() {
        return this.buildDate;
    }

    public void setBuildDate(String buildDate) {
        this.buildDate = buildDate;
    }

    /** 
     *            @hibernate.property
     *             column="Area"
     *             length="53"
     *         
     */
    public Double getArea() {
        return this.area;
    }

    public void setArea(Double area) {
        this.area = area;
    }

    /** 
     *            @hibernate.property
     *             column="Com"
     *             length="200"
     *             not-null="true"
     *         
     */
    public String getCom() {
        return this.com;
    }

    public void setCom(String com) {
        this.com = com;
    }

    /** 
     *            @hibernate.property
     *             column="LinkMan"
     *             length="40"
     *         
     */
    public String getLinkMan() {
        return this.linkMan;
    }

    public void setLinkMan(String linkMan) {
        this.linkMan = linkMan;
    }

    /** 
     *            @hibernate.property
     *             column="LinkTel"
     *             length="50"
     *         
     */
    public String getLinkTel() {
        return this.linkTel;
    }

    public void setLinkTel(String linkTel) {
        this.linkTel = linkTel;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="200"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /** 
     *            @hibernate.property
     *             column="IsPublished"
     *             length="1"
     *         
     */
    public String getIspublished() {
        return this.ispublished;
    }

    public void setIspublished(String ispublished) {
        this.ispublished = ispublished;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="RoomNum"
     *             length="10"
     *         
     */
    public Integer getRoomNum() {
        return this.roomNum;
    }

    public void setRoomNum(Integer roomNum) {
        this.roomNum = roomNum;
    }

    /** 
     *            @hibernate.property
     *             column="FloorNum"
     *             length="10"
     *         
     */
    public Integer getFloorNum() {
        return this.floorNum;
    }

    public void setFloorNum(Integer floorNum) {
        this.floorNum = floorNum;
    }

    /** 
     *            @hibernate.property
     *             column="Direct"
     *             length="6"
     *         
     */
    public String getDirect() {
        return this.direct;
    }

    public void setDirect(String direct) {
        this.direct = direct;
    }

    /** 
     *            @hibernate.property
     *             column="BuildArea"
     *             length="53"
     *         
     */
    public Double getBuildArea() {
        return this.buildArea;
    }

    public void setBuildArea(Double buildArea) {
        this.buildArea = buildArea;
    }

    /** 
     *            @hibernate.property
     *             column="CertificateId"
     *             length="40"
     *         
     */
    public String getCertificateId() {
        return this.certificateId;
    }

    public void setCertificateId(String certificateId) {
        this.certificateId = certificateId;
    }

    /** 
     *            @hibernate.property
     *             column="assoId"
     *             length="20"
     *         
     */
    public String getAssoId() {
        return this.assoId;
    }

    public void setAssoId(String assoId) {
        this.assoId = assoId;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("buildId", getBuildId())
            .toString();
    }

}
